﻿using MiniErp.Model.Entities.AssetManagement;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Model.Entities
{

    /// <summary>
    /// 位置信息实体
    /// </summary>
    [Table("Position")]
    public class PositionEntity
    {
        /// <summary>
        /// 位置编号
        /// </summary>
        [Key]
        [MaxLength(6)]
        [MinLength(6)]
        public int PositionId { get; set; }

        /// <summary>
        /// 位置名称
        /// </summary>
        [MaxLength(12), Required]
        public string PositionName { get; set; }
        /// <summary>
        /// 位置地址
        /// </summary>
        [Required]
        public string PositionAddress { get; set; }

        public List<AssetInfoEntity> AssetInfos { get; set; }
    }
}
